#!/user/bin/env python
# -*- coding:utf-8 -*-
# author : 洛月
# mailer  : 2870093961@qq.com
# created: 2023-08-15 23:04
# updated: 2023-08-15 23:04
from typing import Union, List


def get_tag(text: Union[str, None], sep: str = ",") -> List[str]:
    """从Form表单中提取字符串，并分割未标签列表"""
    if isinstance(text, str):
        text = text.strip()
        if text != "":
            return text.split(sep)

    return []
